import cloud.code.baseProject.util.RedisUtil;
import cloud.code.serverOne.web.Application;
import cloud.code.serverOne.web.dao.TUserDao;
import cloud.code.serverOne.web.service.TUserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import redis.clients.jedis.JedisPool;

import javax.annotation.Resource;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
public class test {

    @Resource
    private TUserService tUserService;
    @Resource
    private TUserDao tUserDao;
    @Autowired
    private JedisPool jedisPool;

    @Test
    public void testOne() {
        System.out.println(RedisUtil.set(jedisPool, "aaaa", "asfdsaf333", 0));
        System.out.println(RedisUtil.get(jedisPool, "aaaa", 0));
    }
}